package com.example.logistics_oa.dubbo;


import com.example.comment_oa.dubbo.ChaWuXianYiJinDubbo;
import com.example.comment_oa.pojos.FiveGold;
import com.example.comment_oa.pojos.xinzi.JibenWuxianyijin;
import com.example.logistics_oa.service.FiveGoldService;
import com.example.logistics_oa.service.JibenWuxianyijinService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;
import java.util.List;

@DubboService(version = "1.0.0",protocol = "${dubbo.protocol.id}",
        application = "${dubbo.application.id}",registry = "${dubbo.registry.id}",
        timeout = 3000)
public class ChaWuXianYiJinDubboImpl implements ChaWuXianYiJinDubbo {
    @Resource
    FiveGoldService fiveGoldService;
    @Resource
    JibenWuxianyijinService jibenWuxianyijinService;
    @Override
    public List<FiveGold> selectAll() {
        return fiveGoldService.selectAll();
    }

    @Override
    public int insertAllWuXianYiJin(JibenWuxianyijin jibenWuxianyijin) {
        return jibenWuxianyijinService.insertAllWuXianYiJin(jibenWuxianyijin);
    }
}
